package com.usefullc.extinguisher.param;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.common.enums.ValidActionEnum;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 消防设备参数实体
 * @author: 星空
 * @date: 2022-09-08
 */
@ApiModel
@Data
public class FireDeviceParam extends BaseDomain {

//useful_auto_generate_section_start

    @UsefulPropertyVerify(required=true,action = ValidActionEnum.UPDATE)
    @ApiModelProperty(notes = "ID")
    private Long id;

    @UsefulPropertyVerify(minLen=2, maxLen=15)
    @ApiModelProperty(notes = "编码")
    private String code;

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "生产日期")
    private Date gmtBuild;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "检查时间")
    private Date gmtAudit;

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "过期时间")
    private Date gmtExpire;

    @UsefulPropertyVerify(minLen=2, maxLen=1000)
    @ApiModelProperty(notes = "备注")
    private String memo;

    @UsefulPropertyVerify(min=-2147483648, max=2147483647)
    @ApiModelProperty(notes = "状态")
    private Integer status;

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "检查用户")
    private Long auditUserId;

    @UsefulPropertyVerify(min=-2147483648, max=2147483647)
    @ApiModelProperty(notes = "类型")
    private Integer type;

    @UsefulPropertyVerify(minLen=2, maxLen=100)
    @ApiModelProperty(notes = "位置")
    private String position;

    @UsefulPropertyVerify(minLen=2, maxLen=200)
    @ApiModelProperty(notes = "重量/型号")
    private String weightType;

    @UsefulPropertyVerify(minLen=2, maxLen=500)
    @ApiModelProperty(notes = "部位")
    private String area;


//useful_auto_generate_section_end

}
